package com.example.microservice.bo.server.map;

import com.example.microservice.common.base.Bo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 *
 *  坐标中心转化的接收参数
 * @author sun
 * @date 2018/11/10
 */
@ApiModel(value = "MapCenterPointBo",description = "坐标中心转化的接收参数")
public class MapCenterPointBo implements Bo{

    private static final long serialVersionUID = -6125397442827573980L;

    @ApiModelProperty(value = "唯一标识符",dataType = "string",example = "125687897748488")
    private String uniqueId;


    @ApiModelProperty(value = "四至坐标集合",dataType = "list",example = "116.42765814663355,39.89735517775165|116.43067618613607,39.8974456201949|116.43092331744405,39.89508341943756|116.43016505353685,39.89502445695984")
    private String points;

    public String getPoints() {
        return points;
    }

    public void setPoints(String points) {
        this.points = points;
    }

    public String getUniqueId() {
        return uniqueId;
    }

    public void setUniqueId(String uniqueId) {
        this.uniqueId = uniqueId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MapCenterPointBo)) return false;
        MapCenterPointBo that = (MapCenterPointBo) o;
        return Objects.equals(uniqueId, that.uniqueId) &&
                Objects.equals(points, that.points);
    }

    @Override
    public int hashCode() {

        return Objects.hash(uniqueId, points);
    }
}
